package com.jl.card.parse.part;

import com.jl.card.parse.IAPDUComponent;
import com.jl.util.HexUtil;

public class NormalPart extends APDUPart{

	private String summary;

	public NormalPart(IAPDUComponent parent, byte[] part,String summary) {
		super(parent, part);
		this.summary = summary;
	}

	@Override
	public void analyse() {
	}

	@Override
	public String getSummary() {
		StringBuilder sb = new StringBuilder();
		sb.append(HexUtil.toHexCompact(part));
		sb.append('[').append(this.summary).append(']');
		return sb.toString();
	}
	
}
